package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface RoleService {
    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    Role selectRoleByKey(String keyword);

    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findById(Integer id);

    void update(Integer[] permissionIds, Integer[] menuIds, Role role);

    List<User> findUserByRoleId(Integer id);

    void deleteRoleById(Integer id);
}
